const moment = require('moment');
const getTime = (req, res, next)=>{
    // 处理用户访问服务器的时间
    let date = moment().format('YYYY-MM-DD HH:mm:ss');
    req.startTime = date;
    next();
}
module.exports = getTime;